﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EMC
{
    public enum ConditionMode
    {
        ModeAnd,
        ModeOr
    }

    public class KeyValues
    {
        private Dictionary<string, string> internalMappings;
        public ConditionMode mode;

        public KeyValues()
        {
            internalMappings = new Dictionary<string, string>();
            mode = ConditionMode.ModeAnd;
        }

        public void Add(string key, string value)
        {
            internalMappings.Add(key, value);
        }

        public string this[string index]
        {
            get
            {
                return internalMappings[index];
            }

            set
            {
                internalMappings[index] = value;
            }
        }

        public Dictionary<string, string> GetMappings()
        {
            return internalMappings;
        }
    }
}
